import axios from 'axios';

export const signup = async (username, accountName, password) => {
    try {
        const response = await axios.post('/user/save', {
            "name": accountName,
            "account": username,
            "password": password
        });

        return response.data;
    } catch (error) {
        return {
            "msg": "注册失败",
            "status": 1001
        };
    }
};
